<div class="admin-content">
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">核销</strong> /
            <small>核销列表</small>
        </div>
    </div>
    <div class="am-g">
        <div class="am-u-sm-12 am-u-md-6">
            <div class="am-btn-toolbar">
                <div class="am-btn-group am-btn-group-xs">
                    <button type="button" class="am-btn am-btn-default" ng-click="orderbystatus()"><span
                            class="am-icon-plus"></span> 查询全部
                    </button>
                    <button type="button" class="am-btn am-btn-default" ng-click="orderbystatus(1)"><span
                            class="am-icon-save"></span>已核销列表
                    </button>
                    <button type="button" class="am-btn am-btn-default" ng-click="orderbystatus(2)"><span
                            class="am-icon-save"></span>未核销列表
                    </button>
                </div>
            </div>
        </div>
        <div class="am-u-sm-5">
            <div class="am-input-group am-input-group-primary">
                <input type="text" class="am-form-field" placeholder="请输入您要查询的电话" ng-model="seaphone">
                <span class="am-input-group-btn">
                    <button class="am-btn am-btn-primary am-round" type="button" ng-click="searchphone(seaphone)" ><span class="am-icon-search"></span></button>
                </span>
            </div>
        </div>
    </div>
    <table class="am-table am-table-striped am-table-hover table-main">
        <thead>
        <tr>
            <th class="table-title">核销id</th>
            <th class="table-title">商铺id</th>
            <th class="table-title">联系电话</th>
            <th class="table-type">创建时间</th>
            <th class="table-set">结束时间</th>
            <th class="table-set">核销状态</th>
            <th class="table-set">编辑</th>
        </tr>
        </thead>
        <tbody>
        <tr dir-paginate="shop in shops| itemsPerPage: 8|filter:seaphone">
            <td> <a class="am-text-secondary">{{shop.verificationid}}</a></td>
            <td data-ng-init="prepare_user(shop.shopid,shop.userid)">{{shop.shopid}}</td>
            <td>{{shop.phone}}</td>
            <td>{{shop.createtime| date:'yyyy-MM-dd'}}</td>
             <td class="am-hide-sm-only">{{shop.endtime| date:'yyyy-MM-dd'}}</td>
            <!--<td class="am-hide-sm-only">{{shop.notice}}</td>-->
            <td class="am-hide-sm-only">{{shop.status | _status}}</td>
            <td>
                <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                        <button ng-show="shop.status==0" class="am-btn am-btn-default am-btn-xs am-text-secondary liststatus"  ng-click="modifystatus(shop,$event)">
                            <span class="am-icon-pencil-square-o"></span> {{shop.status | _status}}
                        </button>
                        <button ng-hide="shop.status==0"  class="am-btn am-btn-default am-btn-xs am-text-secondary liststatus"
                                ng-click="modifystatus(shop,$event)" disabled>
                            <span class="am-icon-pencil-square-o"></span> {{shop.status | _status}}
                        </button>
                        <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only" confirmed-click="remove(shop.verificationid)"
                                ng-confirm-click="确定删除这家店 '{{shop.name}}'"><span
                                class="am-icon-trash-o"></span> 删除</button>
                        </div>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
   <!-- <div class="am-cf">
        <div class="text-center">
            <dir-pagination-controls boundary-links="true" on-page-change="pageChangeHandler(newPageNumber)"
                                     template-url="tpls/pagination/dirPagination.tpl.html"></dir-pagination-controls>
        </div>
    </div>-->
</div>
</div>